import request from '@/utils/request'

// 查询平台列表
export function findSysList(id, name, pageIndex, pageSize) {
  return request({
    url: '/authority/auSys/queryList',
    method: 'get',
    params: { id, name, pageIndex, pageSize }
  })
}

// 查询平台详情
export function findSysDetail(id) {
  return request({
    url: '/authority/auSys/detail',
    method: 'get',
    params: { id }
  })
}

// 删除平台
export function deleteSys(id) {
  return request({
    url: '/authority/auSys/delete',
    method: 'delete',
    params: { id }
  })
}

// 添加平台
export function createSysAdd(data) {
  return request({
    url: '/authority/auSys/add',
    method: 'post',
    data
  })
}

// 修改系统平台
export function updateSys(data) {
  return request({
    url: '/authority/auSys/update',
    method: 'put',
    data
  })
}
